# -- Depythonize_c
# DEPYTHONIZE_C_CMD = depythonize_c
DEPYTHONIZE_C_CMD = ./depythonize_c

CPP_SOURCES_DIRECTORY = ./cpp

# (*) RULES ____________________________________________________________________
#
all: headers depythonize_c. libdepythonize_c. translate. program_mode. preprocessor_mode. debug_print. util.
	mv *.cpp *.h $(CPP_SOURCES_DIRECTORY)

depythonize_c.:
	$(DEPYTHONIZE_C_CMD) $(@)cpy > $(@)cpp

%.:
	$(DEPYTHONIZE_C_CMD) $(@)cpy > $(@)cpp
	$(DEPYTHONIZE_C_CMD) $(@)hpy > $(@)h

headers: libdepythonize_c.
	grep -v extern libdepythonize_c.h > headers/libdepythonize_c.h

clean:
	rm -f *.cpp *.h *~
